.class public Ldgb/o4;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ldgb/o4$a;
    }
.end annotation


# static fields
.field private static a:Z = true


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public static a(Landroid/content/Context;Z)V
    .locals 0

    .line 30
    invoke-static {p0}, Ldgb/n4;->a(Landroid/content/Context;)Ldgb/n4;

    move-result-object p0

    invoke-virtual {p0, p1}, Ldgb/n4;->a(Z)V

    return-void
.end method

.method public static a(Ldgb/o4$a;)V
    .locals 3

    if-eqz p0, :cond_4

    .line 1
    invoke-interface {p0}, Ldgb/o4$a;->c()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 2
    sget-object v0, Ldgb/z;->e:Ljava/util/HashMap;

    invoke-interface {p0}, Ldgb/o4$a;->c()Ljava/lang/String;

    move-result-object v1

    const-string v2, "feedback"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 3
    invoke-interface {p0}, Ldgb/o4$a;->b()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 4
    sget-object v0, Ldgb/z;->e:Ljava/util/HashMap;

    invoke-interface {p0}, Ldgb/o4$a;->b()Ljava/lang/String;

    move-result-object v1

    const-string v2, "appInfo"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 5
    invoke-interface {p0}, Ldgb/o4$a;->a()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 6
    sget-object v0, Ldgb/z;->e:Ljava/util/HashMap;

    invoke-interface {p0}, Ldgb/o4$a;->a()Ljava/lang/String;

    move-result-object v1

    const-string v2, "data"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 7
    invoke-interface {p0}, Ldgb/o4$a;->d()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 8
    sget-object v0, Ldgb/z;->e:Ljava/util/HashMap;

    invoke-interface {p0}, Ldgb/o4$a;->d()Ljava/lang/String;

    move-result-object p0

    const-string v1, "token"

    invoke-virtual {v0, v1, p0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void

    .line 9
    :cond_0
    new-instance p0, Ljava/lang/RuntimeException;

    const-string v0, "SERVICE_URL_FEEDBACK cannot be null."

    invoke-direct {p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 10
    :cond_1
    new-instance p0, Ljava/lang/RuntimeException;

    const-string v0, "SERVICE_URL_DATA cannot be null."

    invoke-direct {p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 11
    :cond_2
    new-instance p0, Ljava/lang/RuntimeException;

    const-string v0, "SERVICE_URL_APPINFO cannot be null."

    invoke-direct {p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 12
    :cond_3
    new-instance p0, Ljava/lang/RuntimeException;

    const-string v0, "SERVICE_URL_FEEDBACK can not be null."

    invoke-direct {p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 13
    :cond_4
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string v0, "getAllServiceUrls can not be null"

    invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p0
.end method

.method public static a(Ljava/lang/String;)V
    .locals 2

    const-string v0, "dev"

    .line 14
    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    .line 15
    sput-boolean v1, Ldgb/z;->a:Z

    .line 16
    sput-boolean v1, Ldgb/z;->b:Z

    .line 17
    sput-boolean v1, Ldgb/z;->d:Z

    .line 18
    sget-boolean p0, Ldgb/z;->b:Z

    sput-boolean p0, Ldgb/z;->c:Z

    goto :goto_0

    :cond_0
    const-string v0, "test"

    .line 19
    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 20
    sput-boolean v1, Ldgb/z;->a:Z

    .line 21
    sput-boolean v1, Ldgb/z;->b:Z

    .line 22
    sput-boolean v1, Ldgb/z;->d:Z

    .line 23
    sget-boolean p0, Ldgb/z;->b:Z

    sput-boolean p0, Ldgb/z;->c:Z

    goto :goto_0

    :cond_1
    const-string v0, "prod"

    .line 24
    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_2

    const/4 p0, 0x0

    .line 25
    sput-boolean p0, Ldgb/z;->a:Z

    .line 26
    sput-boolean p0, Ldgb/z;->b:Z

    .line 27
    sput-boolean p0, Ldgb/z;->d:Z

    .line 28
    sget-boolean p0, Ldgb/z;->b:Z

    sput-boolean p0, Ldgb/z;->c:Z

    :goto_0
    return-void

    .line 29
    :cond_2
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string v0, "wrong environment type!"

    invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p0
.end method

.method public static a(Z)V
    .locals 0

    .line 31
    sput-boolean p0, Ldgb/o4;->a:Z

    return-void
.end method

.method public static a()Z
    .locals 1

    .line 32
    sget-boolean v0, Ldgb/o4;->a:Z

    return v0
.end method
